﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace PloobsEngine.DataAquisition
{
    public class GenericNumberColumDataFormat: DataFormat
    {
        static int frameCount = 0;        
        #region DataFormat Members

        public GenericNumberColumDataFormat(GameTime gt, double[] numbers)
        {
            frameCount++;
            this.numbers  = new List<double>();
            this.numbers.Add(gt.TotalGameTime.TotalMilliseconds);
            this.numbers.Add(gt.ElapsedGameTime.TotalMilliseconds);
            this.numbers.Add(frameCount);
            this.numbers.AddRange(numbers);
        }        

        private List<double> numbers;

        public List<double> Numbers
        {
            get { return numbers; }            
        }
        
        #endregion

        #region DataFormat Members

        public DateTime TimeStamp
        {
            get { return DateTime.Now; }
        }

        #endregion
    }
}
